<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<title></title>
<script>
	function doSubmit() {
		var isIe = "0"
		if (navigator.userAgent.indexOf("MSIE") > 0) {
			isIe = "0";
		} else {
			isIe = "1";
		}
		document.inputForm.action = "${ctx}/file/upload/"+ isIe;
		document.inputForm.submit();
	}
</script>
</head>

<form:form id="inputForm" name="inputForm"
	cssClass="form-horizontal" action="" method="post"
	enctype="multipart/form-data">
	<input type="file" onchange="" name="file" id="file" />
	<div class="controls">
		<button class="btn btn-gebo" type="button" onclick="doSubmit()">保  存</button>
	</div>
</form:form>
</body>
</html>
